import 'package:flutter/material.dart';
import 'package:top_foundation/utils/util.dart';

import 'index.dart';

class SelectItemsView extends StatelessWidget {
  const SelectItemsView({
    Key? key,
    required this.titles,
    required this.complete,
    this.onTitleTap,
  }) : super(key: key);
  final List<SelectionModel> titles;
  final Function(SelectionResultModel res)? complete;
  final Function(int)? onTitleTap;
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 44.r,
      decoration: BoxDecoration(
        color: Colors.white,
        borderRadius: BorderRadius.circular(10.r),
      ),
      child: SelectionTitlesView(
        titles: titles,
        complete: complete,
        onTitleTap: onTitleTap,
      ),
    );
  }
}
